# ————————————————————  4.2.1判断条件  ————————————————————
# print(bool(80))    # 查看整数80的布尔值
# print(bool(0.0))   # 查看浮点数0.0的布尔值
# print(bool(''))    # 查看空字符串的布尔值
# print(bool('Python'))    # 查看字符串'Python'的布尔值

# a, b = 10, 30
# print(a >= 5)       # 判断变量a的值是否大于等于5
# print(b == False)  # 判断变量b的值是否等于False
# # 判断变量a的值是否存在于列表[1, 2, 3, 4, 5]中
# print(a in [1, 2, 3, 4, 5])
# # 判断变量b的值是否不存在于列表[1, 2, 3, 4, 5]中
# print(b not in [1, 2, 3, 4, 5])
# # 对变量a的值取反
# print(not a)
# # 判断变量a的值是否大于等于5并且b的值等于False
# print(a >= 5 & b == False)
# # 判断变量a的值是否大于等于5或者b的值等于False
# print(a >= 5 or b == False)


# ————————————————————  4.2.2单分支结构：if语句  ————————————————————
# day = input("今天是工作日吗（请输入整数1~7）？")
# if day in '12345':
#     print("今天是工作日！")
# if day in '67':
#     print("今天非工作日！")


# ————————————————————  4.2.3双分支结构：if-else语句  ————————————————————
# day = input("今天是工作日吗（请输入整数1~7）？")
# if day in '12345':
#     print("今天是工作日！")
# else:
#     print("今天非工作日！")

# day = input("今天是工作日吗（请输入整数1~7）？")
# result = "今天是工作日！" if day in '12345' else "今天非工作日！"
# print(result)


# ————————————————————  4.2.4多分支结构：if-elif-else语句  ————————————————————
# day = input("今天是工作日吗（请输入整数1~7）？")
# if day in '12345':
#     print("今天是工作日!")
# elif day in '67':
#     print("今天非工作日!")
# else:
#     print("输入有误!")

# score = int(input("请输入百分制成绩："))
# if score > 60:
#     grade = "D"
# elif score > 70:
#     grade = "C"
# elif score > 80:
#     grade = "B"
# elif score > 90:
#     grade = "A"
# else:
#     grade = "E"
# print("五分制成绩是：{}".format(grade))

# score = int(input("请输入百分制成绩："))
# if score > 90:
#     grade = "A"
# elif score > 80:
#     grade = "B"
# elif score > 70:
#     grade = "C"
# elif score > 60:
#     grade = "D"
# else:
#     grade = "E"
# print("五分制成绩是：{}".format(grade))

# score = int(input("请输入百分制成绩："))
# if 60 < score <= 70:
#     grade = "D"
# elif 70 < score <= 80:
#     grade = "C"
# elif 80 < score <= 90:
#     grade = "B"
# elif 90 < score <= 100:
#     grade = "A"
# else:
#     grade = "E"
# print("五分制成绩是：{}".format(grade))


# ————————————————————  4.2.5分支嵌套  ————————————————————
day = input("今天是工作日吗（请输入整数1~7）？")
if day in '1234567':
    if day in '12345':
        print("今天是工作日!")
    else:
        print("今天非工作日!")
else:
    print("输入有误!")

